'use strict';

var app = angular.module('BC');

app.service('BCEnum', [function() {
    return {
        CreateErpDocType: {
            Rcv: { Value: 0, Text: '收货单' },
            SubContractRcv: { Value: 1, Text: '委外收货' },
            Ship: { Value: 2, Text: '出货单' },
            TransferOut: { Value: 3, Text: '调出' },
            TransferIn: { Value: 4, Text: '调入' },
            MisShip: { Value: 5, Text: '杂发' },
            MisRcv: { Value: 6, Text: '杂收' },
            CheckDiffBill: { Value: 7, Text: '盘点单' },
            IssueDoc: { Value: 8, Text: '领料单' },
            RcvRptDoc: { Value: 9, Text: '完工入库单' }
        },
        Direction: {
            In: { Value: 0, Text: '收' },
            Out: { Value: 1, Text: '发' }
        },
        OperType: {
            CreateDoc: { Value: 0, Text: '生单' },
            ApproveDoc: { value: 1, Text: '审核单据' },
            CreateAndApproveDoc: { Value: 2, Text: '生单并审核' }
        }
    };
}]);